package cn.lqz.bucttrain.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderUpdateDTO {
    /**
     * 订单id
     */
    @NotNull
    private Long orderId;
    /**
     * 订单编号
     */
    @NotEmpty
    private String orderNumber;
    /**
     * 路线id
     */
    @NotNull
    private Long routeId;
    /**
     * 乘客电话
     */
    @NotEmpty
    private String passengerPhoneNumber;
    /**
     * 座位类型
     */
    @NotNull
    private Integer seatType;
    /**
     * 座位行号
     */
    @NotNull
    private Integer seatRowNo;
    /**
     * 座位列号
     */
    @NotNull
    private Integer seatColNo;
    /**
     * 支付用户电话
     */
    @NotEmpty
    private String paidUserPhoneNumber;
    /**
     * 价格
     */
    @NotNull
    private BigDecimal price;
    /**
     * 状态 0：未支付，1：已支付，2：已取消
     */
    @NotNull
    private Integer status;

}
